-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Adds method chaining support to LightningModule.freeze() and LightningModule.unfreeze() by returning self
#21469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds method chaining support to LightningModule.freeze() and LightningModule.unfreeze() by returning self
#21469
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests.
Additional details and impacted files@@ Coverage Diff @@
## master #21469 +/- ##
=========================================
- Coverage 87% 79% -8%
=========================================
Files 270 267 -3
Lines 24059 24004 -55
=========================================
- Hits 20855 18955 -1900
- Misses 3204 5049 +1845 |
freeze and unfreeze methodLightningModule.freeze() and LightningModule.unfreeze() by returning self
bhimrazy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
tchaton
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice !
What does this PR do?
Fixes #21464
Before submitting
PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:
Reviewer checklist
📚 Documentation preview 📚: https://pytorch-lightning--21469.org.readthedocs.build/en/21469/